<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org" xmlns:shiro="http://www.pollix.at/thymeleaf/shiro">
<head>
    <th:block th:include="include :: header('周报任务工作列表')" />
</head>
<body class="gray-bg">
     <div class="container-div">
        <div class="row">
            <div class="col-sm-12 search-collapse">
                <form id="formId">
                    <div class="select-list">
                        <ul>
                            <li>
                                <label>日报id：</label>
                                <input type="text" name="weeklyId"/>
                            </li>
                            <li>
                                <label>日报id：</label>
                                <input type="text" name="projectId"/>
                            </li>
                            <li>
                                <label>产品id/项目id：</label>
                                <input type="text" name="productId"/>
                            </li>
                            <li>
                                <label>0.产品/1.项目：</label>
                                <select name="productType">
                                    <option value="">所有</option>
                                    <option value="-1">代码生成请选择字典属性</option>
                                </select>
                            </li>
                            <li>
                                <label>计划完成需求数量：</label>
                                <input type="text" name="planDemandAmount"/>
                            </li>
                            <li>
                                <label>实际完成需求数量：</label>
                                <input type="text" name="actualDemandAmount"/>
                            </li>
                            <li>
                                <label>计划完成任务数量：</label>
                                <input type="text" name="planTaskAmount"/>
                            </li>
                            <li>
                                <label>实际完成任务数量：</label>
                                <input type="text" name="actualTaskAmount"/>
                            </li>
                            <li>
                                <label>0.未延期/1.延期：</label>
                                <input type="text" name="isDelay"/>
                            </li>
                            <li>
                                <label>产品转测数量：</label>
                                <input type="text" name="toTestAmount"/>
                            </li>
                            <li>
                                <label>新增缺陷数量：</label>
                                <input type="text" name="newBugAmount"/>
                            </li>
                            <li>
                                <label>修复缺陷数量：</label>
                                <input type="text" name="fixBugAmount"/>
                            </li>
                            <li>
                                <label>产品体验数量：</label>
                                <input type="text" name="productExperienceAmount"/>
                            </li>
                            <li>
                                <label>产品体验通过数量：</label>
                                <input type="text" name="productExperiencePassAmount"/>
                            </li>
                            <li>
                                <label>产品设计评审会议数量：</label>
                                <input type="text" name="designReviewAmount"/>
                            </li>
                            <li>
                                <label>产品设计评审会议通过数量：</label>
                                <input type="text" name="designReviewPassAmount"/>
                            </li>
                            <li>
                                <label>发现缺陷数量：</label>
                                <input type="text" name="detectBugAmount"/>
                            </li>
                            <li>
                                <label>关闭缺陷数量：</label>
                                <input type="text" name="closeBugAmount"/>
                            </li>
                            <li>
                                <label>配置项目产品数量：</label>
                                <input type="text" name="deployProductAmount"/>
                            </li>
                            <li>
                                <label>文档贡献数量：</label>
                                <input type="text" name="documentAmount"/>
                            </li>
                            <li>
                                <label>培训数量：</label>
                                <input type="text" name="trainingAmount"/>
                            </li>
                            <li>
                                <label>修改时间：</label>
                                <input type="text" class="time-input" placeholder="请选择修改时间" name="modifyTime"/>
                            </li>
                            <li>
                                <a class="btn btn-primary btn-rounded btn-sm" onclick="$.table.search()"><i class="fa fa-search"></i>&nbsp;搜索</a>
                                <a class="btn btn-warning btn-rounded btn-sm" onclick="$.form.reset()"><i class="fa fa-refresh"></i>&nbsp;重置</a>
                            </li>
                        </ul>
                    </div>
                </form>
            </div>

            <div class="btn-group-sm" id="toolbar" role="group">
                <a class="btn btn-success" onclick="$.operate.add()" shiro:hasPermission="system:job:add">
                    <i class="fa fa-plus"></i> 添加
                </a>
                <a class="btn btn-primary single disabled" onclick="$.operate.edit()" shiro:hasPermission="system:job:edit">
                    <i class="fa fa-edit"></i> 修改
                </a>
                <a class="btn btn-danger multiple disabled" onclick="$.operate.removeAll()" shiro:hasPermission="system:job:remove">
                    <i class="fa fa-remove"></i> 删除
                </a>
                <a class="btn btn-warning" onclick="$.table.exportExcel()" shiro:hasPermission="system:job:export">
                    <i class="fa fa-download"></i> 导出
                </a>
            </div>
            <div class="col-sm-12 select-table table-striped">
                <table id="bootstrap-table"></table>
            </div>
        </div>
    </div>
    <th:block th:include="include :: footer" />
    <script th:inline="javascript">
        var editFlag = [[${@permission.hasPermi('system:job:edit')}]];
        var removeFlag = [[${@permission.hasPermi('system:job:remove')}]];
        var prefix = ctx + "system/job";

        $(function() {
            var options = {
                url: prefix + "/list",
                createUrl: prefix + "/add",
                updateUrl: prefix + "/edit/{id}",
                removeUrl: prefix + "/remove",
                exportUrl: prefix + "/export",
                modalName: "周报任务工作",
                columns: [{
                    checkbox: true
                },
                {
                    field: 'jobId',
                    title: '任务工作id',
                    visible: false
                },
                {
                    field: 'weeklyId',
                    title: '日报id'
                },
                {
                    field: 'projectId',
                    title: '日报id'
                },
                {
                    field: 'productId',
                    title: '产品id/项目id'
                },
                {
                    field: 'productType',
                    title: '0.产品/1.项目'
                },
                {
                    field: 'planDemandAmount',
                    title: '计划完成需求数量'
                },
                {
                    field: 'actualDemandAmount',
                    title: '实际完成需求数量'
                },
                {
                    field: 'planTaskAmount',
                    title: '计划完成任务数量'
                },
                {
                    field: 'actualTaskAmount',
                    title: '实际完成任务数量'
                },
                {
                    field: 'isDelay',
                    title: '0.未延期/1.延期'
                },
                {
                    field: 'toTestAmount',
                    title: '产品转测数量'
                },
                {
                    field: 'newBugAmount',
                    title: '新增缺陷数量'
                },
                {
                    field: 'fixBugAmount',
                    title: '修复缺陷数量'
                },
                {
                    field: 'productExperienceAmount',
                    title: '产品体验数量'
                },
                {
                    field: 'productExperiencePassAmount',
                    title: '产品体验通过数量'
                },
                {
                    field: 'designReviewAmount',
                    title: '产品设计评审会议数量'
                },
                {
                    field: 'designReviewPassAmount',
                    title: '产品设计评审会议通过数量'
                },
                {
                    field: 'detectBugAmount',
                    title: '发现缺陷数量'
                },
                {
                    field: 'closeBugAmount',
                    title: '关闭缺陷数量'
                },
                {
                    field: 'deployProductAmount',
                    title: '配置项目产品数量'
                },
                {
                    field: 'documentAmount',
                    title: '文档贡献数量'
                },
                {
                    field: 'trainingAmount',
                    title: '培训数量'
                },
                {
                    field: 'remark',
                    title: '备注'
                },
                {
                    field: 'modifyTime',
                    title: '修改时间'
                },
                {
                    title: '操作',
                    align: 'center',
                    formatter: function(value, row, index) {
                        var actions = [];
                        actions.push('<a class="btn btn-success btn-xs ' + editFlag + '" href="javascript:void(0)" onclick="$.operate.edit(\'' + row.jobId + '\')"><i class="fa fa-edit"></i>编辑</a> ');
                        actions.push('<a class="btn btn-danger btn-xs ' + removeFlag + '" href="javascript:void(0)" onclick="$.operate.remove(\'' + row.jobId + '\')"><i class="fa fa-remove"></i>删除</a>');
                        return actions.join('');
                    }
                }]
            };
            $.table.init(options);
        });
    </script>
</body>
</html>